package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.DecnumEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author 梁鲁江
 * @version v1.0
 * @date 2019/10/25 21:07
 * @since v1.0
 */
@Repository
@Mapper
public interface DecnumDao {
    Integer insert(DecnumEntity decnumEntity) ;

    Integer update(DecnumEntity decnumEntity);

    DecnumEntity getByKey(@Param("key") Long key);

    DecnumEntity getUpToDateByCorpid(@Param("corpid") String corpid);

    DecnumEntity updateAmountByCorpid(@Param("amount") Double amount,@Param("corpid") String corpid);

    DecnumEntity getByCorpid(@Param("corpid") String corpid);

    DecnumEntity getUpToDate();

    Long getAutoIncrement();

    List<DecnumEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);
}
